package com.ruoyi.project.survey.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.project.survey.domain.entity.Question;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * 问卷表(Question)表数据库访问层
 *
 * @author makejava
 * @since 2024-03-17 08:41:40
 */
@Mapper
public interface QuestionMapper extends BaseMapper<Question> {

    @Update("update t_question set nums=nums+1 where id=#{id}")
    int updateNum(Integer id);



    List<Question> getQuestionAnswersStatist(Long id);

}

